<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>改变网页背景色</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> </head>

<body>
   
   
    <button onclick="color('red')">设置为红色</button>
    <button onclick="color('yellow')">设置为黄色</button>
    <button onclick="color('blue')">设置为蓝色</button>
    <script src="./js/script.js"></script>
    
    
    <input type="color" onchange="color_ylf(this)">
</body>

</html>